package com.abel.roommanager.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.abel.roommanager.pojo.RoomType;
import com.abel.roommanager.service.RoomTypeService;

@Controller
@RequestMapping("/roomType")
@Scope("prototype")
public class RoomTypeController {
	@Autowired
	private RoomTypeService roomTypeService;
	@RequestMapping("/findAll")
	@ResponseBody
   public List<RoomType> findAllRoomType() {
	return roomTypeService.findAllRoomType();
	
}
}
